import { get, post } from '@/utils/request'
// 添加职位联系人
export const addContacts = (query) => {
  return post('/en/enContacts/add', query)
}
// 修改职位联系人
export const editContacts = (query) => {
  return post('/en/enContacts/edit', query)
}
// 查询职位联系人
export const listContacts = (query) => {
  return get('/en/enContacts/list', query)
}
// 查询单个联系人
export const oneContacts = (query) => {
  return get('/en/enContacts/queryById', query)
}
// 删除职位联系人
export const delContacts = (query) => {
  return get('/en/enContacts/delete', query)
}

// 邀请面试
export const interviewInvitation = (query) => {
  return post('/en/opInterviewHistory/addInterviewData', query)
}
// 修改求职者状态
export const editState = (query) => {
  return get('/en/index/editInfoById', query)
}
// 修改面试信息
export const editInterView = (query) => {
  return post('/en/opInterviewHistory/editInterView', query)
}

// 根据id查询面试信息
export const queryByIdInterView = (query) => {
  return get('/en/opInterviewHistory/queryByIdInterView', query)
}

// 发送录用
export const employment = (query) => {
  return post('/en/opEntryHistory/add', query)
}
// 转发简历
export const sendWithFile = (query) => {
  return post('/en/email/sendWithFile', query)
}

// 候选人列表
export const candidateList = (query) => {
  return get('/en/candidateList', query)
}

// 应聘记录
export const entryInfApplyList = (query) => {
  return get('/en/entryInfo/applyList', query)
}

//开始面试
export const viewStart = (query) => {
  return get('/en/index/viewStart', query)
}
//结束面试
export const viewEnd = (query) => {
  return get('/en/index/viewEnd', query)
}